#include <Units.h>
Public Member Functions | |
| Units () | |
| Units (const Units &rhs) | |
| Units & | operator= (const Units &rhs) |
| virtual | ~Units () |
| void | convert (const std::string &from, const std::string &to, double *slope, double *offset) throw (UnitException) |
| bool | areConvertible (const std::string &unit1, const std::string &unit2) const throw (UnitException) |
| test if two units are convertible to each others | |
| bool | isTime (const std::string &timeUnit) const throw (UnitException) |
|
|
initialization of unit handling, i.e. parsing of unit file etc if required |
|
|
|
|
|
|
|
||||||||||||
|
test if two units are convertible to each others
|
|
||||||||||||||||||||
|
calculate the linear unit conversion: newVal (in to unit) = oldVal (in from unit) * slope + offset
|
|
|
|
|
|
|
1.4.6